import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'
import { ResourceComponent } from './resource.component';
import { psMachineModule } from './psMachine/psMachine.module';
import { PsMachineComponent } from './psMachine/psMachine.component';
import { CommonServiceModule } from '../../common/common.service.module';
import { cloudMachineModule } from './cloudMachine/cloudMachine.module';
import { CloudMachineComponent } from './cloudMachine/cloudMachine.component';
import { TenantsComponent } from './tenants/tenants.component';
import { TenantsModule } from './tenants/tenants.module';
@NgModule({
    imports: [
        psMachineModule,
        cloudMachineModule,
        CommonServiceModule,
        TenantsModule,
        RouterModule.forChild([
            {
                path: '',
                component: ResourceComponent,
                children: [

                    {
                        path: 'psMachine',
                        component: PsMachineComponent
                    },
                    {
                        path: 'cloudMachine',
                        component: CloudMachineComponent
                    },
                    {
                        path: 'tenants',
                        component: TenantsComponent
                    }
                ]
            },
        ])
    ],
    providers: [

    ],
    declarations: [
        ResourceComponent
    ],
    exports: [
        ResourceComponent
    ],
})
export class ResourceModule { }